import WQRequest from "@/service";
const time = 60000;

export function getstrategypage(data) {
    return WQRequest.post({
        url: "strategy/getstrategypage",
        data
    });
}
export function editstrategylinkequipment(data) {
    return WQRequest.post({
        url: "strategy/editstrategylinkequipment",
        data,
        timeout: time
    });
}
export function updateistemplateasync(data) {
    return WQRequest.post({
        url: "basicsstrategy/updateistemplateasync",
        data
    });
}
export function updatestateasync(data) {
    return WQRequest.post({
        url: "basicsstrategy/updatestateasync",
        data
    });
}
export function getinspectionitemtamplatepage(data) {
    return WQRequest.post({
        url: "inspectionitem/getinspectionitemtamplatepage",
        data
    });
}
//获取三级部件
export function getthirdstructurelist(data) {
    return WQRequest.get({
        url: "inspectionitem/getthirdstructurelist",
        params: data
    });
}
export function addstrategyinspectionitemtemplate(data) {
    return WQRequest.post({
        url: "inspectionitem/addstrategyinspectionitemtemplate",
        data
    });
}
export function getinspectionitemtemplatelist(data) {
    return WQRequest.get({
        url: "inspectionitem/getinspectionitemtemplatelist",
        params: data
    });
}
//修改检查项模板状态
export function edittemplatestate(data) {
    return WQRequest.post({
        url: "inspectionitem/edittemplatestate",
        data
    });
}
//批量删除检查项模板
export function batchdeletetemplate(data) {
    return WQRequest.post({
        url: "inspectionitem/batchdeletetemplate",
        data
    });
}
export function getinspectionitempagebytemplate(data) {
    return WQRequest.post({
        url: "inspectionitem/getinspectionitempagebytemplate",
        data
    });
}
export function getinspectionitembytemplateid(data) {
    return WQRequest.post({
        url: "inspectionitem/getinspectionitembytemplate",
        data
    });
}
export function getinspectioniteminspectionresultlist(data) {
    return WQRequest.get({
        url: "inspectionitem/getinspectioniteminspectionresultlist",
        params: data
    });
}
export function getinspectionitemdisposalmethodlist(data) {
    return WQRequest.get({
        url: "inspectionitem/getinspectionitemdisposalmethodlist",
        params: data
    });
}
export function batchaddinspectionitem(data) {
    return WQRequest.post({
        url: "inspectionitem/batchaddinspectionitem",
        data
    });
}
export function editinspectionitem(data) {
    return WQRequest.post({
        url: "inspectionitem/editinspectionitem",
        data
    });
}
export function batchdeleteinspectionitem(data) {
    return WQRequest.post({
        url: "inspectionitem/batchdeleteinspectionitem",
        data
    });
}
//新增策略
export function addstrategy(data) {
    return WQRequest.post({
        url: "strategy/addstrategy",
        data,
        timeout: 30000
    });
}
export function getstructuretypelist(data) {
    return WQRequest.get({
        url: "structuremanagement/getstructuretypelist",
        params: data
    });
}
export function getstructuretree(data) {
    return WQRequest.post({
        url: "structuremanagement/getstructuretree",
        data
    });
}
export function addfirststructure(data) {
    return WQRequest.post({
        url: "structuremanagement/addfirststructure",
        data,
        timeout: time
    });
}
export function getbasicsstructurefirstnamelist(data) {
    return WQRequest.get({
        url: "structuremanagement/getbasicsstructurefirstnamelist",
        params: data
    });
}
export function getbasicsstructuresecondnamelist(data) {
    return WQRequest.get({
        url: "structuremanagement/getbasicsstructuresecondnamelist",
        params: data
    });
}
export function addsecordstructure(data) {
    return WQRequest.post({
        url: "structuremanagement/addsecordstructure",
        data,
        timeout: time
    });
}
export function getinspectionitemtemplist(data) {
    return WQRequest.get({
        url: "structuremanagement/getinspectionitemtemplist",
        params: data
    });
}
export function getplancycledetail(data) {
    return WQRequest.get({
        url: "structuremanagement/getplancycledetail/" + data
    });
}
export function editfirststructure(data) {
    return WQRequest.post({
        url: "structuremanagement/editfirststructure",
        data,
        timeout: time
    });
}
export function batchdeletefirststructure(data) {
    return WQRequest.post({
        url: "structuremanagement/batchdeletefirststructure",
        data,
        timeout: time
    });
}
export function batchdeletesecondstructure(data) {
    return WQRequest.post({
        url: "structuremanagement/batchsecordstructure",
        data,
        timeout: time
    });
}
export function editsecordstructure(data) {
    return WQRequest.post({
        url: "structuremanagement/editsecordstructure",
        data,
        timeout: time
    });
}
export function getthirdstructurepage(data) {
    return WQRequest.post({
        url: "structuremanagement/getthirdstructurepage",
        data
    });
}
export function getstrategy(data) {
    return WQRequest.post({
        url: "strategy/getstrategy",
        data
    });
}
export function batchdeletestrategy(data) {
    return WQRequest.post({
        url: "strategy/batchdeletestrategy",
        data,
        timeout: time
    });
}
export function getstategytemplatelist(data) {
    return WQRequest.get({
        url: "strategy/getstategytemplatelist",
        params: data
    });
}
//修改策略名称，状态，模板
export function editstrategyname(data) {
    return WQRequest.post({
        url: "strategy/editstrategyname",
        data
    });
}
